from applications.extensions import ma
from marshmallow import fields
from applications.models import Dept


# 突发事件处置列表的models的序列化类
class EmRepoListOutSchema(ma.Schema):
    id = fields.Integer()
    police_id = fields.Integer()
    name = fields.Str()
    tranning_name = fields.Str()
    tranning_state = fields.Str()
    create_time = fields.DateTime()
    fireDegree = fields.Integer()
    fireRange = fields.Integer()
    evacuat_num = fields.Integer()
    has_evacuat_num = fields.Integer()
    windSpeed = fields.Integer()
    haveBuild = fields.Str()
    tempControl = fields.Integer()
    decision_maker_num = fields.Integer()
    scheme_num = fields.Integer()
    recognition_ratio = fields.Integer()